package com.szrt.java.day20161229.demo02;

public class Teacher {

	int age;
	int salary;
	
	public void setAge(int ages){
		age = ages;
	}
	public int getAge(){
		return age;
	}
	
	public void setSalary(int salaries){
		salary = salaries;
	}
	public int getSalary(){
		return salary;
	}
	
	public static void main(String[] args) {
		Teacher huang = new Teacher();
		
		huang.setAge(33);
		huang.setSalary(50000);
		
		int huangAge = huang.getAge();
		int huangSalary = huang.getSalary();
		
		System.out.println("黄老师的年龄是："+huangAge+"岁");
		System.out.println("黄老师的月入工资是："+huangSalary+"元");
		
		
	}
	
}
